extends Node2D

var bar
var top = 1
var current = 1

func _ready():
	bar = get_node("BossHPBar")
	bar.value = 0
	hide()

func update(value):
	current = value
	bar.value = current*100/top

func set_max(value):
	top = value
	current = 0

func reset():
	top = 1
	current = 0
	bar.value = 0
